import request from '@/utils/request'


export function RecruitSearchPage(current,pageSize,recruit) {
  const {deptId,positionId,salary,dateTime,status} = recruit
  return request({
    url: '/recruitDetailController/pageRecruit',
    method: 'get',
    params:{current,pageSize,deptId,positionId,salary,dateTime,status}
  })
}

export function editOrCreateRecruit(data) {
  return request({
    url: '/recruitDetailController/saveOrUpdateRecruit',
    method: 'post',
    data
  })
}

export function selectByIdRecruit(id) {
  return request({
    url: `/recruitDetailController/getByIdRecruit/${id}`,
    method: 'get'
  })
}

export function file(id) {
  return request({
    url: `/recruitDetailController/file/${id}`,
    method: 'post'
  })
}


export function del(id) {
  return request({
    url: `/recruitDetailController/del/${id}`,
    method: 'delete'
  })
}




